<script setup>

</script>

<template>
  <h1>布局组件</h1>
  <el-row :gutter="20">
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
  </el-row>

  <h3>两张图</h3>
  <el-row gutter="10">
    <el-col :span="12"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>

  <h3>六张图</h3>
  <el-row :gutter="6">
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>

  <h3>三张图 宽度1:2:3</h3>
  <el-row :gutter="6">
    <el-col :span="4"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="8"><img src="2024.png" style="width: 100%"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>

  <h3>8个数字</h3>
  <el-row>
    <el-col :span="3">1</el-col>
    <el-col :span="3">2</el-col>
    <el-col :span="3">3</el-col>
    <el-col :span="3">4</el-col>
    <el-col :span="3">5</el-col>
    <el-col :span="3">6</el-col>
    <el-col :span="3">7</el-col>
    <el-col :span="3">8</el-col>
  </el-row>

  <h3>列偏移</h3>
  <el-row>
    <!-- :offset="2" 列偏移,默认值为日,默认靠左,写几就是向右移动几列-->
    <el-col :span="20" :offset="2"><img src="2024.png" style="width: 100%"></el-col>
  </el-row>

  <!--  布局嵌套-->
  <h3>布局嵌套</h3>
      <el-row>
        <el-col :span="12" style="border: 1px solid #f00">左侧</el-col>
        <el-col :span="12" style="background-color: red">
          <el-row class="no-margin-padding">
            <el-col :span="8" style="background-color: #0aa1ed">1</el-col>
            <el-col :span="8" style="background-color: #0aa1ed">2</el-col>
            <el-col :span="8" style="background-color: #0aa1ed">3</el-col>
          </el-row>
        </el-col>
      </el-row>

</template>

<style scoped>

</style>















